package com.itheima.feign.order;


import com.itheima.sh.entity.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "order-service")
public interface OrderFeign {

    @GetMapping("/order/findOrderInfoByUserId/{userId}")
    List<OrderEntity> findOrderInfoByUserId(@PathVariable("userId") Integer userId);
}
